package my.jwds.p237;

import my.jwds.p21.ListNode;

public class DeleteNode {

    public void deleteNode(ListNode node) {
        while(node.next != null && node.next.next != null){
            node.val = node.next.val;
            node = node.next;
        }
        node.val = node.next.val;
        node.next = null;
    }
}
